﻿<%@ Register TagPrefix="ucCommon" TagName="Common" Src="../Common/Inc/Common.ascx" %>
<%@ Register TagPrefix="ucTop" TagName="Top" Src="../Common/Inc/Top.ascx" %>
<%@ Register TagPrefix="ucMenu" TagName="Menu" Src="../Common/Inc/Menu.ascx" %>
<%@ Register TagPrefix="ucTabTitle" TagName="TabTitle" Src="../Common/Inc/TabTitle.ascx" %>
<%@ Register TagPrefix="ucCopyright" TagName="Copyright" Src="../Common/Inc/Copyright.ascx" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Cfg1013m.aspx.cs" Inherits="Updms.Cfg.Cfg1013m" ValidateRequest="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>▒ UPDMS [Cfg1013m] ▒▒▒▒▒▒▒▒▒▒</title>
<ucCommon:Common id="Common" runat="server"></ucCommon:Common>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager runat="server" id="ScriptManager1" EnableScriptGlobalization="true"></asp:ScriptManager>

<table id="table_frame">
	<tr>
		<td id="top_area" colspan="2">
			<!-- Top 시작 -->
			<ucTop:Top id="Top" runat="server"></ucTop:Top>
			<!-- Top 끝 -->
		</td>
	</tr>
	<tr>
		<td id="menu_area">
			<!-- 메뉴 시작 -->
			<ucMenu:Menu id="Menu" runat="server"></ucMenu:Menu>
			<!-- 메뉴 끝 -->
		</td>
		<td id="contents_area">
			<!-- 제목 시작 -->
			<ucTabTitle:TabTitle id="TabTitle" TagPrefixs="Cfg1013m" runat="server"></ucTabTitle:TabTitle>
			<!-- 제목 끝 -->
			<!-- AJAX 시작 -->
			<asp:UpdatePanel ID="UpdatePanel1" runat="server">
			<ContentTemplate>
			<!-- 버튼 시작 -->
			<div class="button_area">
				<asp:linkbutton id="ibtn_create" Text="생성" runat="server" CssClass="ibtn ibtn_create" OnClientClick="return chkCreate()" OnClick="ibtn_create_Click"></asp:linkbutton>
				<asp:linkbutton id="ibtn_search" Text="검색" runat="server" CssClass="ibtn ibtn_search" OnClientClick="return chkSearch()" OnClick="ibtn_search_Click"></asp:linkbutton>
			</div>
			<!-- 버튼 끝 -->
			<!-- 검색 시작 -->
			<table class="table_search">
				<tr>
					<td class="lbl" width="11%"><asp:Literal id="ltr_search_database" Text="데이터베이스" runat="server" /></td>
					<td class="ctl" width="22%"><asp:DropDownList id="ddl_search_database" runat="server" CssClass="ddl" AutoPostBack="True" OnSelectedIndexChanged="ddl_search_database_SelectedIndexChanged"></asp:DropDownList></td>
					<td class="lbl" width="11%"><asp:Literal id="ltr_search_table" Text="테이블" runat="server" /></td>
					<td class="ctl" width="56%"><asp:DropDownList id="ddl_search_table" runat="server" CssClass="ddl"></asp:DropDownList></td>
				</tr>
			</table>
			<!-- 검색 끝 -->
			<!-- 디테일1 시작 -->
			<table id="table_detail_1" class="table_detail" runat="server">
				<tr>
					<td class="lbl" width="4%"><asp:Literal id="ltr_div" Text="구분" runat="server" /></td>
					<td class="ctl" width="8.5%"><asp:DropDownList id="ddl_div" runat="server" CssClass="ddl"></asp:DropDownList></td>
					<td class="lbl" width="4%"><asp:Literal id="ltr_pgm_div" Text="시스템" runat="server" /></td>
					<td class="ctl" width="8.5%"><asp:textbox id="txt_pgm_div" CssClass="ib_b" runat="server" Width="97.5%" Text="Xxx"></asp:textbox></td>
					<td class="lbl" width="4%"><asp:Literal id="ltr_pgm_id" Text="프로그램 아이디" runat="server" /></td>
					<td class="ctl" width="8.5%"><asp:textbox id="txt_pgm_id" CssClass="ib_b" runat="server" Width="97.5%" Text="Xxx9999m"></asp:textbox></td>
					<td class="lbl" width="4%"><asp:Literal id="ltr_comment" Text="설명" runat="server" /></td>
					<td class="ctl" width="8.5%"><asp:textbox id="txt_comment" CssClass="ib_b" runat="server" Width="97.5%" Text="XXXXX"></asp:textbox></td>
				</tr>				
			</table>
			<!-- 디테일1 끝 -->
			<!-- 토글 시작 -->
			<div id="div_toggle" runat="server">
			<span onclick="toggleObj('div_list_set');">
				<span id="span_hide_show" onclick="toggleStr(this, 'detailHide', 'detailShow');" title="Hide" style="cursor:pointer;">
					<span id="detailHide" style="display:none; padding:0 0 2px 0;" class="icon sbtn_arrow_out"></span>
					<span id="detailShow" style="display:block; padding:0 0 2px 0;" class="icon sbtn_arrow_in"></span>
				</span>
			</span>
			</div>
			<!-- 토글 끝 -->
			<!-- 리스트셋 시작 -->
			<div id="div_list_set" style="display:block;">
			<table id="table_list_set" cellspacing="0" cellpadding="0" width="100%" border="0" runat="server">
				<tr>
					<td>
						<!-- 리스트 시작 -->
						<asp:GridView ID="GridView1" CssClass="table_gridview" GridLines="None" runat="server" AutoGenerateColumns="False" OnRowDataBound="GridView1_RowDataBound" DataKeyNames="">
							<Columns>
								<asp:TemplateField HeaderText="&lt;a href=&quot;javascript:void(0);&quot; onclick=&quot;checkBoxCheckNoReverse();&quot;&gt;S&lt;/a&gt;">
									<ItemTemplate>
										<input id="cb_check" class="cb" type="checkbox" runat="server" />
									</ItemTemplate>
									<ItemStyle HorizontalAlign="Center" Width="2%" />
								</asp:TemplateField>
								<asp:BoundField HeaderText="번호" >
									<ItemStyle HorizontalAlign="Center" Width="4%" />
								</asp:BoundField>
								<asp:BoundField DataField="COLUMN_NAME" HeaderText="컬럼명" HtmlEncode="False" >
									<ItemStyle Width="10%" HorizontalAlign="Left" />
								</asp:BoundField>
								<asp:BoundField DataField="REMARKS" HeaderText="설명" HtmlEncode="False" >
									<ItemStyle Width="14%" HorizontalAlign="Left" />
								</asp:BoundField>
								<asp:BoundField DataField="TYPE_NAME" HeaderText="타입" HtmlEncode="False" >
									<ItemStyle Width="10%" HorizontalAlign="Left" />
								</asp:BoundField>
								<asp:BoundField DataField="PRECISION" HeaderText="길이" HtmlEncode="False" >
									<ItemStyle Width="4%" HorizontalAlign="Left" />
								</asp:BoundField>
								<asp:BoundField DataField="IS_NULLABLE" HeaderText="널허용" HtmlEncode="False" >
									<ItemStyle Width="4%" HorizontalAlign="Left" />
								</asp:BoundField>
								<asp:TemplateField HeaderText="검색대상">
									<ItemTemplate>
										<input id="cb_search" class="cb" type="checkbox" runat="server" />
									</ItemTemplate>
									<ItemStyle Width="6%" HorizontalAlign="Center" />
								</asp:TemplateField>
								<asp:TemplateField HeaderText="정렬">
									<ItemTemplate>
										<input id="cb_order_by" class="cb" type="checkbox" runat="server" />
									</ItemTemplate>
									<ItemStyle Width="6%" HorizontalAlign="Center" />
								</asp:TemplateField>
								<asp:TemplateField HeaderText="템플릿">
									<ItemTemplate>
										<input id="cb_template" class="cb" type="checkbox" runat="server" />
									</ItemTemplate>
									<ItemStyle Width="6%" HorizontalAlign="Center" />
								</asp:TemplateField>
								<asp:TemplateField HeaderText="숨김필드">
									<ItemTemplate>
										<input id="cb_hidden_field" class="cb" type="checkbox" runat="server" />
									</ItemTemplate>
									<ItemStyle Width="6%" HorizontalAlign="Center" />
								</asp:TemplateField>
								<asp:TemplateField HeaderText="드랍다운">
									<ItemTemplate>
										<input id="cb_drop_down_list" class="cb" type="checkbox" runat="server" />
									</ItemTemplate>
									<ItemStyle Width="6%" HorizontalAlign="Center" />
								</asp:TemplateField>
								<asp:TemplateField HeaderText="라디오버튼">
									<ItemTemplate>
										<input id="cb_radio_button_list" class="cb" type="checkbox" runat="server" />
									</ItemTemplate>
									<ItemStyle Width="6%" HorizontalAlign="Center" />
								</asp:TemplateField>
								<asp:TemplateField HeaderText="첨부파일">
									<ItemTemplate>
										<input id="cb_attach_file" class="cb" type="checkbox" runat="server" />
									</ItemTemplate>
									<ItemStyle Width="6%" HorizontalAlign="Center" />
								</asp:TemplateField>
							</Columns>
							<EmptyDataTemplate>
								<div id="no_data"></div>
							</EmptyDataTemplate>
						</asp:GridView>
						<!-- 리스트 끝 -->
					</td>
				</tr>
			</table>
			</div>
			<!-- 리스트셋 끝 -->
			<div style="height:4px;"></div>
			<!-- 디테일2 시작 -->
			<table id="table_detail_2" class="table_detail" runat="server">
				<tr>
					<td class="ctl" style="padding:1px;"><asp:textbox id="txt_source" runat="server" Width="99.2%" CssClass="tb_scroll che" TextMode="MultiLine" Rows="4" Height="600"></asp:textbox></td>
				</tr>
			</table>
			<!-- 디테일2 끝 -->
			<!-- 설명 시작 -->			
			<!-- 설명 끝 -->
			<!-- 카피라이트 시작 -->
			<ucCopyright:Copyright id="Copyright" runat="server"></ucCopyright:Copyright>
			<!-- 카피라이트 끝 -->
			<!-- 히든값 시작 -->
			<div id="hdn_data">
				<asp:Label id="lbl_search_flag" runat="server"></asp:Label>
			</div>
			<!-- 히든값 끝 -->
			</ContentTemplate>
			</asp:UpdatePanel>
			<!-- AJAX 끝 -->
		</td>
	</tr>
</table>

<asp:updateprogress AssociatedUpdatePanelID="UpdatePanel1" ID="updateProgress" runat="server">
	<progresstemplate>
		<div id="progressBackgroundFilter"></div>
		<div id="processMessage">
			<div id="processing"></div>
			<img src="../Common/Images/processing_img.gif" />
		</div>
	</progresstemplate>
</asp:updateprogress>

</form>
<script type="text/javascript" language="javascript" defer="defer">
	//검색
	function chkSearch() {
		if ($F("ddl_search_database").blank()) {
			msgBox.alert(getMsg(MSG_ERR_206), setFocus, "ddl_search_database"); //데이터베이스를 선택하세요
			return false;
		}
	}

	//생성
	function chkCreate() {
		if ($F("ddl_search_database").blank()) {
			msgBox.alert(getMsg(MSG_ERR_206), setFocus, "ddl_search_database"); //데이터베이스를 선택하세요
			return false;
		}

		if ($("GridView1") == null || !isCheckedOnGridView("GridView1", 0)) {
			msgBox.alert(getMsg(MSG_ERR_100));	//생성할 항목을 선택하세요
			return false;
		}
	}
</script>
</body>
</html>